#ifndef __ERROR_H_

#define    SYS_ERROR_BASE   (1000)

#define    EPERM        (SYS_ERROR_BASE + 1)    /* Operation not permitted */
#define    ENOENT       (SYS_ERROR_BASE + 2)    /* No such file or directory */
#define    ESRCH        (SYS_ERROR_BASE + 3)    /* No such process */
#define    EINTR        (SYS_ERROR_BASE + 4)    /* Interrupted system call */
#define    EIO          (SYS_ERROR_BASE + 5)    /* I/O error */
#define    ENXIO        (SYS_ERROR_BASE + 6)    /* No such device or address */
#define    E2BIG        (SYS_ERROR_BASE + 7)    /* Argument list too long */
#define    ENOEXEC      (SYS_ERROR_BASE + 8)    /* Exec format error */
#define    EBADF        (SYS_ERROR_BASE + 9)    /* Bad file number */
#define    ECHILD       (SYS_ERROR_BASE + 10)    /* No child processes */
#define    EAGAIN       (SYS_ERROR_BASE + 11)    /* Try again */
#define    ENOMEM       (SYS_ERROR_BASE + 12)    /* Out of memory */
#define    EACCES       (SYS_ERROR_BASE + 13)    /* Permission denied */
#define    EFAULT       (SYS_ERROR_BASE + 14)    /* Bad address */
#define    ENOTBLK      (SYS_ERROR_BASE + 15)    /* Block device required */
#define    EBUSY        (SYS_ERROR_BASE + 16)    /* Device or resource busy */
#define    EEXIST       (SYS_ERROR_BASE + 17)    /* File exists */
#define    EXDEV        (SYS_ERROR_BASE + 18)    /* Cross-device link */
#define    ENODEV       (SYS_ERROR_BASE + 19)    /* No such device */
#define    ENOTDIR      (SYS_ERROR_BASE + 20)    /* Not a directory */
#define    EISDIR       (SYS_ERROR_BASE + 21)    /* Is a directory */
#define    EINVAL       (SYS_ERROR_BASE + 22)    /* Invalid argument */
#define    ENFILE       (SYS_ERROR_BASE + 23)    /* File table overflow */
#define    EMFILE       (SYS_ERROR_BASE + 24)    /* Too many open files */
#define    ENOTTY       (SYS_ERROR_BASE + 25)    /* Not a typewriter */
#define    ETXTBSY      (SYS_ERROR_BASE + 26)    /* Text file busy */
#define    EFBIG        (SYS_ERROR_BASE + 27)    /* File too large */
#define    ENOSPC       (SYS_ERROR_BASE + 28)    /* No space left on device */
#define    ESPIPE       (SYS_ERROR_BASE + 29)    /* Illegal seek */
#define    EROFS        (SYS_ERROR_BASE + 30)    /* Read-only file system */
#define    EMLINK       (SYS_ERROR_BASE + 31)    /* Too many links */
#define    EPIP         (SYS_ERROR_BASE + 32)    /* Broken pipe */
#define    EDOM         (SYS_ERROR_BASE + 33)    /* Math argument out of domain of func */
#define    ERANGE       (SYS_ERROR_BASE + 34)    /* Math result not representable */
#define    ENOFS        (SYS_ERROR_BASE + 35)    /* NO such file System */
#endif
